package il.ac.tau.cg.ex3.entities.surfaces;

import il.ac.tau.cg.ex3.entities.styles.Material;
import il.ac.tau.cg.ex3.math.shapes.Cylinder;
import il.ac.tau.cg.ex3.math.shapes.Shape;

public class CylinderSurface extends Surface
{
	private Cylinder cylinder;
	
	public CylinderSurface(Material material, Cylinder cylinder)
	{
		super(material);
		
		this.cylinder = cylinder;
	}

	public void setCylinder(Cylinder cylinder)
	{
		this.cylinder = cylinder;
	}
	
	public Cylinder getCylinder()
	{
		return cylinder;
	}

	@Override
	public int getType()
	{
		return SurfaceTypes.CYLINDER;
	}

	@Override
	public Shape getShape()
	{
		return cylinder;
	}
}
